import React from 'react'
import { useLocation } from 'react-router-dom'
// 事件跳转 获取 参数

interface Ilocation{
    hash:string,
    key:string,
    pathname:string,
    search:string,
    state:any
}

export default function Home() {
    const location:Ilocation = useLocation()
  return (
    <div>Home

        {location.state.id}
    </div>
  )
}
